<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Autovermietung: Xenon Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Autovermietung
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_xenon.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_xenon-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Xenon Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class.  
 <a href="class_xenon.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_xenon_8h_source.html">Xenon.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Xenon:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_xenon.png" usemap="#Xenon_map" alt=""/>
  <map id="Xenon_map" name="Xenon_map">
<area href="class_extras.html" title="Header for the Extras class." alt="Extras" shape="rect" coords="29,56,78,80"/>
<area href="class_object.html" title="Header for the Object class." alt="Object" shape="rect" coords="0,0,49,24"/>
<area href="class_i_car.html" title="Header for the ICar class." alt="ICar" shape="rect" coords="59,0,108,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a451a2372f7f1cda5e64e4438e81e7084"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xenon.html#a451a2372f7f1cda5e64e4438e81e7084">Xenon</a> (<a class="el" href="class_i_car.html">ICar</a> *car)</td></tr>
<tr class="memdesc:a451a2372f7f1cda5e64e4438e81e7084"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of the <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class.  <a href="#a451a2372f7f1cda5e64e4438e81e7084"></a><br/></td></tr>
<tr class="separator:a451a2372f7f1cda5e64e4438e81e7084"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_extras"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_extras')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_extras.html">Extras</a></td></tr>
<tr class="memitem:ad42d527438500348e6f425d3e434b4e0 inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#ad42d527438500348e6f425d3e434b4e0">Extras</a> (<a class="el" href="class_i_car.html">ICar</a> *car)</td></tr>
<tr class="memdesc:ad42d527438500348e6f425d3e434b4e0 inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of the extras class.  <a href="#ad42d527438500348e6f425d3e434b4e0"></a><br/></td></tr>
<tr class="separator:ad42d527438500348e6f425d3e434b4e0 inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac12989edf6c9083852250d271b8b460d inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#ac12989edf6c9083852250d271b8b460d">~Extras</a> ()</td></tr>
<tr class="memdesc:ac12989edf6c9083852250d271b8b460d inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">The DTor of the <a class="el" href="class_extras.html" title="Header for the Extras class.">Extras</a>.  <a href="#ac12989edf6c9083852250d271b8b460d"></a><br/></td></tr>
<tr class="separator:ac12989edf6c9083852250d271b8b460d inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f9b762ca773e41d77c38626e55ad902 inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f9b762ca773e41d77c38626e55ad902"></a>
std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#a0f9b762ca773e41d77c38626e55ad902">GetManufacturer</a> () const </td></tr>
<tr class="memdesc:a0f9b762ca773e41d77c38626e55ad902 inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the manufacturer of the car. <br/></td></tr>
<tr class="separator:a0f9b762ca773e41d77c38626e55ad902 inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72f1539f1dbb2e0a03453409bbbd2a8c inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a72f1539f1dbb2e0a03453409bbbd2a8c"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#a72f1539f1dbb2e0a03453409bbbd2a8c">GetPrice</a> () const </td></tr>
<tr class="memdesc:a72f1539f1dbb2e0a03453409bbbd2a8c inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the price of a car + its extras. <br/></td></tr>
<tr class="separator:a72f1539f1dbb2e0a03453409bbbd2a8c inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9b2cb908c3496c42ef4967ab3854aaf inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9b2cb908c3496c42ef4967ab3854aaf"></a>
std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#af9b2cb908c3496c42ef4967ab3854aaf">GetType</a> () const </td></tr>
<tr class="memdesc:af9b2cb908c3496c42ef4967ab3854aaf inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Type of the <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>. <br/></td></tr>
<tr class="separator:af9b2cb908c3496c42ef4967ab3854aaf inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af85e9f1632a5aba46e52e6b05ce2e3a6 inherit pub_methods_class_extras"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#af85e9f1632a5aba46e52e6b05ce2e3a6">Print</a> (std::ostream &amp;out) const </td></tr>
<tr class="memdesc:af85e9f1632a5aba46e52e6b05ce2e3a6 inherit pub_methods_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints the <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> and its decorators.  <a href="#af85e9f1632a5aba46e52e6b05ce2e3a6"></a><br/></td></tr>
<tr class="separator:af85e9f1632a5aba46e52e6b05ce2e3a6 inherit pub_methods_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Header for the Object class.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_car"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_car')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_car.html">ICar</a></td></tr>
<tr class="memitem:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c5050a1e2aca8702bd4724985cdb3b0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#a1c5050a1e2aca8702bd4724985cdb3b0">~ICar</a> ()</td></tr>
<tr class="memdesc:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">The DTor of <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a>. Implemented to make the DTor virtual. <br/></td></tr>
<tr class="separator:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a5241f04bfb3500ed221c14e5534e09c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xenon.html#a5241f04bfb3500ed221c14e5534e09c1">DoPrint</a> (std::ostream &amp;out) const </td></tr>
<tr class="memdesc:a5241f04bfb3500ed221c14e5534e09c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints the Text of the extra.  <a href="#a5241f04bfb3500ed221c14e5534e09c1"></a><br/></td></tr>
<tr class="separator:a5241f04bfb3500ed221c14e5534e09c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_extras"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_extras')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_extras.html">Extras</a></td></tr>
<tr class="memitem:a37a63b432e3c0047641e1c0757cdafb4 inherit pro_attribs_class_extras"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37a63b432e3c0047641e1c0757cdafb4"></a>
<a class="el" href="class_i_car.html">ICar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#a37a63b432e3c0047641e1c0757cdafb4">mCar</a></td></tr>
<tr class="memdesc:a37a63b432e3c0047641e1c0757cdafb4 inherit pro_attribs_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Car/Extra this Decorator decorates. <br/></td></tr>
<tr class="separator:a37a63b432e3c0047641e1c0757cdafb4 inherit pro_attribs_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a935935c467ff066b9a08da31f135b996 inherit pro_attribs_class_extras"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a935935c467ff066b9a08da31f135b996"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_extras.html#a935935c467ff066b9a08da31f135b996">mPrice</a></td></tr>
<tr class="memdesc:a935935c467ff066b9a08da31f135b996 inherit pro_attribs_class_extras"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Price of an Extra. <br/></td></tr>
<tr class="separator:a935935c467ff066b9a08da31f135b996 inherit pro_attribs_class_extras"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class. </p>
<p>A concrete decorator which adds a cruise control to a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a></p>
<p>The <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class adds a Cruise control (decorates) to a car.</p>
<dl class="section author"><dt>Author</dt><dd>Thomas Pfeiffer </dd></dl>
<dl class="section date"><dt>Date</dt><dd>20.11.2012 </dd></dl>

<p>Definition at line <a class="el" href="_xenon_8h_source.html#l00014">14</a> of file <a class="el" href="_xenon_8h_source.html">Xenon.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a451a2372f7f1cda5e64e4438e81e7084"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Xenon::Xenon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_car.html">ICar</a> *&#160;</td>
          <td class="paramname"><em>car</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CTor of the <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class. </p>
<p>The CTor of the <a class="el" href="class_xenon.html" title="Header for the Xenon class.">Xenon</a> class. Initializes the <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> it decorates. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">car</td><td>An <a class="el" href="class_object.html" title="Header for the Object class.">Object</a> which implements <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a> that should be decorated. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::exception</td><td>if car is null </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_xenon_8cpp_source.html#l00003">3</a> of file <a class="el" href="_xenon_8cpp_source.html">Xenon.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a5241f04bfb3500ed221c14e5534e09c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Xenon::DoPrint </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints the Text of the extra. </p>
<p>This function is the operation which is called by the template method. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>The stream you want to print into. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_extras.html#a6bd73ffdee875196a2e731bf7eff3138">Extras</a>.</p>

<p>Definition at line <a class="el" href="_xenon_8cpp_source.html#l00007">7</a> of file <a class="el" href="_xenon_8cpp_source.html">Xenon.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_xenon.html">Xenon</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
